package fr.esiag.projet17.persistence.dao;

import fr.esiag.projet17.persistence.dao.factory.FactoryType;
import fr.esiag.projet17.persistence.dao.oracle.DAOFactory;
import fr.esiag.projet17.persistence.dao.oracle.impl.UtilisateurDAO;

/**
 * @author teddy
 * 
 */
public abstract class ADAOFactory {

	/**
	 * @return
	 */
	public abstract UtilisateurDAO getUtilisateurDAO();

	/**
	 * @param factory
	 * @return
	 */
	public static ADAOFactory getDAOFactory(FactoryType factory) {
		switch (factory) {
		case ORACLE:
			return new DAOFactory();
		default:
			return null;
		}
	}
}
